package com.wangsir.entity;

import java.util.Date;

public class Student {

    private String sno;//学号
    private String password;//密码
    private String name;//名字
    private String tele;//电话
    private Date   enterDate;//入学时间
    private Integer age;//年龄
    private String gender;//性别
    private String address;//地址
    private String clazzNO;//班级号
    private Clazz clazz;//班级属性


    public Student() {
    }

    public Student(String sno, String password, String name, String tele, Date enterDate, Integer age, String gender, String address, String clazzNO) {
        this.sno = sno;
        this.password = password;
        this.name = name;
        this.tele = tele;
        this.enterDate = enterDate;
        this.age = age;
        this.gender = gender;
        this.address = address;
        this.clazzNO = clazzNO;
    }

    public Student(String sno, String password, String name, String tele, Date enterDate, Integer age, String gender, String address, String clazzNO, Clazz clazz) {
        this.sno = sno;
        this.password = password;
        this.name = name;
        this.tele = tele;
        this.enterDate = enterDate;
        this.age = age;
        this.gender = gender;
        this.address = address;
        this.clazzNO = clazzNO;
        this.clazz = clazz;
    }

    /**
     * 获取
     * @return sno
     */
    public String getSno() {
        return sno;
    }

    /**
     * 设置
     * @param sno
     */
    public void setSno(String sno) {
        this.sno = sno;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return tele
     */
    public String getTele() {
        return tele;
    }

    /**
     * 设置
     * @param tele
     */
    public void setTele(String tele) {
        this.tele = tele;
    }

    /**
     * 获取
     * @return enterDate
     */
    public Date getEnterDate() {
        return enterDate;
    }

    /**
     * 设置
     * @param enterDate
     */
    public void setEnterDate(Date enterDate) {
        this.enterDate = enterDate;
    }

    /**
     * 获取
     * @return age
     */
    public Integer getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     * 获取
     * @return gender
     */
    public String getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(String gender) {
        this.gender = gender;
    }

    /**
     * 获取
     * @return address
     */
    public String getAddress() {
        return address;
    }

    /**
     * 设置
     * @param address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 获取
     * @return clazzNO
     */
    public String getClazzNO() {
        return clazzNO;
    }

    /**
     * 设置
     * @param clazzNO
     */
    public void setClazzNO(String clazzNO) {
        this.clazzNO = clazzNO;
    }

    public String toString() {
        return "Student{sno = " + sno + ", password = " + password + ", name = " + name + ", tele = " + tele + ", enterDate = " + enterDate + ", age = " + age + ", gender = " + gender + ", address = " + address + ", clazzNO = " + clazzNO + "}";
    }

    /**
     * 获取
     * @return clazz
     */
    public Clazz getClazz() {
        return clazz;
    }

    /**
     * 设置
     * @param clazz
     */
    public void setClazz(Clazz clazz) {
        this.clazz = clazz;
    }
}
